class Ball {
	public void throwball() { }
}
class SoccerBall extends Ball { 
    public void throwball() {
		System.out.println("Throwing soccerball"); 
    }
}
class TennisBall extends Ball { 
    class Dates
{
	private int day,month,year;
public void setDay(int d)
	{
	day=d;
}
public void setMonth(int m)
	{
	month=m;
}
public void setYear(int y)
	{
	year=y;
}
public int getDay()
	{
	return day;
	}
public int getMonth()
	{
	return month;
	}
public int getYear()
	{
	return year;
}
public void showDMY()
	{
System.out.println(day+":"+month+":"+year);
	}	
}
class MyMain 
{
	public static void main(String[] args) 
	{
		Dates md=new Dates();
		md.setDay(29);
		md.setMonth(8);
		md.setYear(1976);
		md.showDMY();

		Dates yd=new Dates();
		yd.setDay(13);
		yd.setMonth(12);
		yd.setYear(2006);
		yd.showDMY();

		Dates hd=new Dates();
		int a1,a2,a3;
		a1=Integer.parseInt(args[0]);
		a2=Integer.parseInt(args[1]);
		a3=Integer.parseInt(args[2]);
		hd.setDay(a1);
		hd.setMonth(a2);
		hd.setYear(a3);
		hd.showDMY();

	}
}
